package edu.dgut.bbssystem.pojo;

import java.io.Serializable;
import java.util.Date;

public class Post implements Serializable {
    private Integer postId;//帖子ID

    private Integer authorId;//发帖人ID

    private String postContent;//帖子内容

    private String postTittle;//标题

    private Integer postTypeId;//帖子分类ID

    private Date submissionTime;//帖子发布时间

    private Date editTime;//帖子最后编辑时间

    private Integer browsingCount;//浏览次数

    private Integer commentsNumber;//评论数量

    private Integer lastReplyId;//最后回复人ID

    private Date lastReplyTime;//最后回复时间

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Integer authorId) {
        this.authorId = authorId;
    }

    public String getPostContent() {
        return postContent;
    }

    public void setPostContent(String postContent) {
        this.postContent = postContent == null ? null : postContent.trim();
    }

    public String getPostTittle() {
        return postTittle;
    }

    public void setPostTittle(String postTittle) {
        this.postTittle = postTittle == null ? null : postTittle.trim();
    }

    public Integer getPostTypeId() {
        return postTypeId;
    }

    public void setPostTypeId(Integer postTypeId) {
        this.postTypeId = postTypeId;
    }

    public Date getSubmissionTime() {
        return submissionTime;
    }

    public void setSubmissionTime(Date submissionTime) {
        this.submissionTime = submissionTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public Integer getBrowsingCount() {
        return browsingCount;
    }

    public void setBrowsingCount(Integer browsingCount) {
        this.browsingCount = browsingCount;
    }

    public Integer getCommentsNumber() {
        return commentsNumber;
    }

    public void setCommentsNumber(Integer commentsNumber) {
        this.commentsNumber = commentsNumber;
    }

    public Integer getLastReplyId() {
        return lastReplyId;
    }

    public void setLastReplyId(Integer lastReplyId) {
        this.lastReplyId = lastReplyId;
    }

    public Date getLastReplyTime() {
        return lastReplyTime;
    }

    public void setLastReplyTime(Date lastReplyTime) {
        this.lastReplyTime = lastReplyTime;
    }
}